/**
  ******************************************************************************
  * @file    Project/Api/Hmi.h 
  * @author  Zlf
  * @version V1.0.0
  * @date    2017-12-12
  * @brief   Header for hmi.c module
  */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef    __HMI_H
#define    __HMI_H

/* Includes ------------------------------------------------------------------*/
	#include "main.h"

/* Exported constants --------------------------------------------------------*/

/* Exported macro ------------------------------------------------------------*/
#define MAX_POS 		( 327679999 )
#define MIN_POS 		( -327680000 )
#define MIN_VELO		( 1 )
#define MAX_VELO		( 1000 - 1 ) //3300
#define GAP_POS			( 10 )
#define POS_SHIFT  		( 9 )
#define POS_OFFSET 		( 0x8000 << POS_SHIFT )


/* Exported types ------------------------------------------------------------*/
typedef  struct{
	void (* display )(void);
	void (* action )(void);
}F_HMI_Typedef;

/* Exported varables ---------------------------------------------------------*/
extern F_HMI_Typedef fHmi;

#endif /* __HMI_H */
 
